package com.group.sliding.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.group.sliding.domain.dto.LoginFormDTO;
import com.group.sliding.domain.dto.RegisterFormDTO;
import com.group.sliding.domain.dto.UserUpdateDTO;
import com.group.sliding.domain.po.User;
import com.group.sliding.domain.query.UserPageQuery;
import com.group.sliding.domain.vo.UserLoginVO;

/**
 * <p>
 * 用户表 服务类
 * </p>
 */
public interface IUserService extends IService<User> {

    UserLoginVO login(LoginFormDTO loginFormDTO);

    void deductMoney(String pw, Integer totalFee);

    void register(RegisterFormDTO registerFormDTO);

    void updateInfo(UserUpdateDTO userUpdateDTO);

    Page<User> search(UserPageQuery query);
}
